Skip to content

fix: finish invalid primary runs and harden host validation - #124

Merged
cmp-202 merged 1 commit into
masterfrom
fix/4.0.4-review
Nov 18, 2026
Merged

cmp-202 merged 1 commit into
masterfrom
fix/4.0.4-review

Conversation

@cmp-202

@cmp-202 cmp-202 commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

Addresses the findings from the 4.0.3 review.

  • A primary host with no server, or a server with neither host nor hostname, now reports Parameters, finalizes that host, and advances to the next primary instead of leaving the run unfinished. It no longer falls through to localhost:22.
  • Host labels, nested session text, and forwardOut use hostname when host is absent.
  • privateKey is included in string redaction as well as object dumps.
  • abortOnSudoFailure sends a single Ctrl-C instead of two.
  • publish.yml normalizes refs/tags/ for workflow_dispatch refs.
  • Docs and changelog updated, including the fork-PR skipped-check tradeoff.

Tests

  • npm test: lib 182/182, frozen baseline 168 pass / 14 skipped
  • npm run test:src: 182/182
  • check:build: lib/ in sync with src/
  • git diff --check: clean

No publish. The 4.0.4 release PR follows this merge.

A primary host with no server, or a server with neither host nor hostname, reported Parameters but never finalized, so the callback never fired and later primaries were skipped. Route it through _failContext so the run advances, and treat a missing host name as invalid instead of letting ssh2 fall back to localhost:22.

Also label hosts by host or hostname, include privateKey in string redaction, send a single Ctrl-C on abortOnSudoFailure, normalize workflow_dispatch refs in the publish check, and update the docs and changelog for the review findings.
@cmp-202
cmp-202 merged commit 7811542 into master Nov 18, 2026
8 checks passed
@cmp-202
cmp-202 deleted the fix/4.0.4-review branch November 18, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant